#ifndef asldfaksjflakfjhaskdfhasdjf
#define asldfaksjflakfjhaskdfhasdjf

#include "updater.types.h"

INT    w_stat(const CHAR * a, VOID * b);
FD_T * w_open(CHAR * filename, INT flags);
INT w_read(FD_T * fd, CHAR * buf, size_t size);
INT w_write(FD_T * fd, CHAR * buf, size_t size);
OFF_T w_lseek(FD_T * fd, size_t offset, INT whence);
INT w_close(FD_T * fd);
INT w_filestatus(FD_T * ps_fd);
FD_T * w_mkstemp( CHAR * pc_buf);
VOID * w_opendir(const CHAR * pc_name);
INT w_closedir(VOID * pv_dir);
INT w_mkdir(const CHAR * pc_pathname, MODE_T i_mode);
INT w_unlink( const CHAR * pc_name);

STAT_T * w_new_stat(void);
INT w_free_stat(STAT_T * ps_stat);

MODE_T w_stat_mode(STAT_T * ps_stat);
OFF_T w_stat_size(STAT_T * ps_stat);
UINT w_stat_links(STAT_T * ps_stat);
UID_T w_stat_user(STAT_T * ps_stat);
MODE_T w_stat_group(STAT_T * ps_stat);
INT w_stat_blocksize(STAT_T * ps_stat);
INT w_stat_blocks_allocated(STAT_T * ps_stat);
TIME_T w_stat_time_last_access(STAT_T * ps_stat);
TIME_T w_stat_time_last_modification(STAT_T * ps_stat);
TIME_T w_stat_time_last_change(STAT_T * ps_stat);


INT w_stat_isreg(STAT_T * ps_stat);
INT w_stat_isdir(STAT_T * ps_stat);
INT w_stat_ischr(STAT_T * ps_stat);
INT w_stat_isblk(STAT_T * ps_stat);
INT w_stat_isfifo(STAT_T * ps_stat);
INT w_stat_islnk(STAT_T * ps_stat);
INT w_stat_issock(STAT_T * ps_stat);


#endif /* asldfaksjflakfjhaskdfhasdjf */
